package com.lft.com.oilgas.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author tyqw
 * @since 2024-09-10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Ordere implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 司机编号
     */

    private Integer driverId;

//    核销商家的id
@TableField("merchant_id")
    private  Integer merchantld;
    /**
     * 支付时间
     */
    private LocalDateTime payTime;
    /**
     * 取消时间/核销时间
     */
    private LocalDateTime verificationTime;

    /**
     * 订单状态
     */
    private Integer status;

    /**
     * 订单金额
     */
    private Double amount;

    /**
     * 单价
     */
    private Double monovalen;

    /**
     * 数量
     */
    private Integer number;

    /**
     * 类型
     */
    private Integer commodityRoleId;

    /**
     * 核销码
     */
    private String code;

    /**
     * 商品id
     */
    @TableField("commodity_id")
    private Integer commodityid;


}
